
<div class="span12 content spacer5" id="content"
	style="display: block; margin-left: 0px;">
	<?php if (!empty($resimler)) { ?>
	<script type="text/javascript">
                                        $(function() {
                                            $('#kategori1 .galeri').galleryView();
                                        });
                                    </script>
	<span style="display: none;"> <strong style="margin-left: 10px;">Kategoriler
			:</strong> <select name="kategori" style="margin: 10px;"
		onChange="changeCategory(this.value);">
			<option value="kategori1" selected>Kategori 1</option>
			<option value="kategori2">Kategori 2</option>
	</select>
	</span>

	<div id="kategori1">
		<ul class="galeri">
			<?php
			$t = count($resimler);
			for ($i = 0; $i < $t; $i++) {
                                                ?>
			<li><img
				src="{imgPath}img/galeri/<?= $resimler[$i]->kategori; ?>/<?= $resimler[$i]->resim; ?>"
				alt="<?= $resimler[$i]->aciklama; ?>" /> <?php } ?>
		
		</ul>
	</div>
	<?php } elseif(!empty($fiyatlar)){ ?>
	<div class="span3" style="width: 250px;">
		<h2>Fiyat Listesi</h2>
		<div id="pane1" class="scroll-pane">
			<table style="border: 0;">
				<?php 
				foreach($fiyatlar as $k=>
                                            $v){
                                    ?>
				<tr>
					<th align="left" style="font-size: 12px;"><?php echo $v->aciklama;?>
					</th>
					<th>&nbsp;&nbsp;.....................&nbsp;&nbsp;</th>
					<th align="left"><?php echo $v->fiyat;?> TL</th>
				</tr>
				<?php } ?>
			</table>
		</div>
	</div>
	<div class="span1"></div>
	<div class="span8">{icerik}</div>
	<?php } elseif(!empty($iletisim)) { ?>
	<script type="text/javascript">
                                
                                </script>
	<div class="span5">{iletisim}</div>
	<div class="span2" style="margin-right: 20px;"></div>
	<div class="span6">
		<h2>İletişim Formu</h2>
		<form action="../iltgonder" method="post"
			onSubmit="sendFrm();return false;" name="frmContact" id="frmContact">
			<label for="adsoyad">Adınız-Soyadınız :</label> <input type="text"
				class="required" name="adsoyad" id="adsoyad"> <br> <label
				for="eposta">E-Posta Adresiniz :</label> <input type="text"
				class="required email" name="eposta" id="eposta"> <br> <label
				for="telefon">Telefon Numaranız:</label> <input type="text"
				class="required phone" name="telefon" id="telefon"> <br> <label
				for="adsoyad">Mesajınız:</label>
			<textarea name="mesaj" class="required" id="" cols="10" rows="10"
				id="mesaj" style="height: 70px;"></textarea>
			<br>
			<button class="btn btn-primary" type="submit">Gönder</button>
		</form>
	</div>
	<?php } elseif(!empty($videolar)){?>	
	<div class="span4">
		<h2>Videolar</h2>
		<span style="display: none;"> <strong style="margin-left: 10px;">Kategoriler
				:</strong><br /> <select name="kategori" style="margin: 10px;">
				<option selected="selected">Seçiniz</option>
				<option value="">Karışık</option>
				<option value="">Deneme Galeri</option>
		</select>
		</span>
		<div id="pane1" class="scroll-pane">

			<ul class="videolist">
				<?php 
				$t = count($videolar);
				for($i=0;$i<$t;$i++){
							        ?>
				<li onClick="$('#videoplayer source').attr('src','<?php echo $videolar[$i]->video_url;?>');"><img src="img/<?php echo $videolar[$i]->video_resim;?>"
					height="30" align="left" /> <?php echo $videolar[$i]->video_adi;?>
				</li>
				<?php } ?>
		
		</div>
	</div>
	<div class="span1"></div>
	<div class="span7">
		<video id="videoplayer" class="video-js vjs-default-skin" controls
			width="740" height="464" preload="auto" data-setup="{}">
			<?php 
			$t = count($videolar);
			for($i=0;$i<$t;$i++){
							        ?>
			<source type="video/mp4" src="<?php echo $videolar[$i]->video_url;?>" />
			<source type="video/webm" src="<?php echo $videolar[$i]->video_url2;?>" />
			<?php } ?>
		</video>
	</div>
	<?php } else { ?>
	{icerik}
	<?php } ?>
</div>


